package util;

import org.jboss.crypto.CryptoUtil;

public class Encrypt {

	public static String encryptSHA256(String toEncrypt) {
		String hash = CryptoUtil.createPasswordHash("SHA-256", CryptoUtil.BASE64_ENCODING, "UTF-8", null, toEncrypt);
		return hash;
	}

}